package cn.dnui_wwt524.dnuifood_16110100524.model;

import android.view.View;
import android.widget.Toast;

import java.util.List;

import cn.dnui_wwt524.dnuifood_16110100524.bean.CollectStatus;
import cn.dnui_wwt524.dnuifood_16110100524.fragment.CollectFoodFragment;
import cn.dnui_wwt524.dnuifood_16110100524.listener.OnRetrofitListener;
import cn.dnui_wwt524.dnuifood_16110100524.service.CollectService;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class CollectModel extends BaseModel {
    private CollectService collectService;
    public CollectModel(){
        super();
        collectService=retrofit.create(CollectService.class);
    }
    public void getAllUserCollection(String user_id,String flag,OnRetrofitListener listener){
        Call call =collectService.getAllUserCollection(user_id,flag);
        bindCallBack(call,listener,1);
    }}
